home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14950 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: vixen.cso.uiuc.edu!usenet
  2. From: Dragos-Anton Manolescu <manolesc@uiuc.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: static private variables/functions
  5. Date: 02 Apr 1996 15:38:36 -0600
  6. Organization: University of Illinois at Urbana-Champaign
  7. Message-ID: <op20m6tig2.fsf@sweetbay.will.uiuc.edu>
  8. References: <op3f6ntuoy.fsf@sweetbay.will.uiuc.edu>
  9. Reply-To: Dragos Manolescu <manolesc@uiuc.edu>
  10. NNTP-Posting-Host: sweetbay.will.uiuc.edu
  11. In-reply-to: Dragos-Anton Manolescu's message of 01 Apr 1996 17:01:49 -0600
  12. X-Newsreader: Gnus v5.1
  13.  
  14. >>>>> "Me" == Dragos-Anton Manolescu <manolesc@uiuc.edu> writes:
  15.  
  16. I wrote:
  17.  
  18. > I'm trying to use a class with several static private variables
  19. > and functions. Here's a piece from my code (have left just one
  20. > variable and one function to keep the code clear):
  21.  
  22. [stuff deleted]
  23.  
  24. > Everything compiles Ok but apparently the linker is not able to
  25. > find the class variables:
  26.  
  27. > All the class variables are private, and therefore used just by
  28. > the member functions.
  29.  
  30. > What am I doing wrong here? I use g++ 2.7.2 and libg++ 2.7.1.3, if
  31. > that matters.
  32.  
  33. Thanx for all who replied. I've seen the answer in the g++ FAQ
  34. meanwhile, now everything works fine.
  35.  
  36. Thanx again!
  37. -- 
  38. dam                                    http://www.uiuc.edu/ph/www/manolesc
  39.